package main

import (
	"go.uber.org/zap"
	"log"
	"xin/raft"
)

func main() {
	logger, err := zap.NewDevelopment()
	if err != nil {
		log.Panic(err)
	}

	defer logger.Sync()

	transport := raft.NewTcpTransport(1234, logger)

	err = transport.Init()
	if err != nil {
		log.Panic(err)
	}

}
